package com.tubang.organization.service;

import com.baomidou.mybatisplus.service.IService;
import com.tubang.organization.entity.RoleMenuEntity;
import com.tubang.organization.vo.MenuVo;

import java.util.List;

/**
 * <p>
 * 角色-菜单 服务类
 * </p>
 *
 * @author wsl
 * @since 2017-11-29
 */
public interface IRoleMenuService extends IService<RoleMenuEntity> {

    /**
     * 查询角色所有的菜单
     * @param id
     * @return
     */
    List<MenuVo> selectMenuListByRoleId(String id);

    List<MenuVo> selectMenuListByMenuParentId(String id);

    void deleteByRoleId(String roleId);

    List<MenuVo> selectRMListByRoleId(String roleId);

    List<MenuVo> selectRMenuListByParentId(String parentId);

    List<MenuVo> selectRMByRIdHave(String roleId, String userType);
}
